#include "gui/objects/hud/GUIMaxSpeedExceededNotification.h"
#include "gui/objects/hud/GUINextSuggestedActionNotification.h"
#include "gui/objects/hud/GUISpeedometer.h"
#include "gui/objects/hud/GUISpeedometerHand.h"
#include "gui/objects/hud/GUIWrongWayNofitication.h"
#include "gui/objects/GUIHud.h"
#include "util/MathUtils.h"

namespace gui {

GUIHud::GUIHud(GUIObjectDrawer* drawer, RoadNavigation roadNavigation, bool goingWrongWay, bool exceedingMaxSpeed, int carSpeed, int maxCarSpeed, int height) {
	if (goingWrongWay) {
		this->addObjectToContainer(new GUIWrongWayNofitication(drawer));
	} else {
		this->addObjectToContainer(new GUINextSuggestedActionNotification(drawer, roadNavigation));
	}
	if (exceedingMaxSpeed) {
		this->addObjectToContainer(new GUIMaxSpeedExceededNotification(drawer));
	}
	this->addObjectToContainer(new GUISpeedometer(drawer));
	this->addObjectToContainer(new GUISpeedometerHand(drawer, carSpeed, maxCarSpeed));
	this->topmost = 0;
	this->bottommost = height;
}

GUIHud::~GUIHud() {

}

}
